﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Entity;
using Business;

namespace WebApp
{
    public partial class ServicePriceforUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                BindingService();
        }

        private void BindingService()
        {
            GridView1.DataSource = Source();
            GridView1.DataBind();
        }
        private DataTable Source()
        {
            Services_Bussiness serB = new Services_Bussiness();
            DataTable ta = new DataTable();
            try {
                ta = serB.Binding();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            finally
            {
                serB = null;
            }
            return ta;
        }
    }
}